package crawler.server.dispatch.entity.core;

import java.io.Serializable;
import java.util.Date;
import java.util.List;

public class TaskEntity implements Serializable {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	
	
	private String ID;                //记录ID
	private Date createTime;          //记录的创建时间
	private Date updateTime;          //记录的更新时间
	private String taskId;            //任务的ID
	private String groupName;         //对应Script的jar包文件名（不带后缀）
	private String taskName;          //对应执行的类名，包含完整包名+类名
	private List<String> taskUrl;     //初始URL，任务执行的起始URL。Task只存储URL表的ID，即urlId
	private Integer priority;         //优先级
	private Integer retry;            //URL失败后的重试次数
	private Long repeatTime;          //重发时间
	private Integer repeatRound;      //重发次数
	private Long taskInterval;        //任务执行间隔
	private Long taskTimeOut;         //任务超时时间
	private Long urlInterval;         //URL执行间隔
	private Long urlTimeOut;          //URL超时时间
	private String version;           //版本，Server 下发的version是服务端对应task的最新版本；Client 汇报的version是当前task在客户的版本
	private Integer scriptType;       //脚本类型
	private Boolean multiThreading;   //多线程执行
	private String clientGroup;       //客户端分组
	private Boolean taskStatus;       //任务状态
	
	
	
	public String getID() {
		return ID;
	}
	public void setID(String iD) {
		ID = iD;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getTaskId() {
		return taskId;
	}
	public void setTaskId(String taskId) {
		this.taskId = taskId;
	}
	public String getGroupName() {
		return groupName;
	}
	public void setGroupName(String groupName) {
		this.groupName = groupName;
	}
	public String getTaskName() {
		return taskName;
	}
	public void setTaskName(String taskName) {
		this.taskName = taskName;
	}
	public List<String> getTaskUrl() {
		return taskUrl;
	}
	public void setTaskUrl(List<String> taskUrl) {
		this.taskUrl = taskUrl;
	}
	public Integer getPriority() {
		return priority;
	}
	public void setPriority(Integer priority) {
		this.priority = priority;
	}
	public Integer getRetry() {
		return retry;
	}
	public void setRetry(Integer retry) {
		this.retry = retry;
	}
	public Long getRepeatTime() {
		return repeatTime;
	}
	public void setRepeatTime(Long repeatTime) {
		this.repeatTime = repeatTime;
	}
	public Integer getRepeatRound() {
		return repeatRound;
	}
	public void setRepeatRound(Integer repeatRound) {
		this.repeatRound = repeatRound;
	}
	public Long getTaskInterval() {
		return taskInterval;
	}
	public void setTaskInterval(Long taskInterval) {
		this.taskInterval = taskInterval;
	}
	public Long getTaskTimeOut() {
		return taskTimeOut;
	}
	public void setTaskTimeOut(Long taskTimeOut) {
		this.taskTimeOut = taskTimeOut;
	}
	public Long getUrlInterval() {
		return urlInterval;
	}
	public void setUrlInterval(Long urlInterval) {
		this.urlInterval = urlInterval;
	}
	public Long getUrlTimeOut() {
		return urlTimeOut;
	}
	public void setUrlTimeOut(Long urlTimeOut) {
		this.urlTimeOut = urlTimeOut;
	}
	public String getVersion() {
		return version;
	}
	public void setVersion(String version) {
		this.version = version;
	}
	public Integer getScriptType() {
		return scriptType;
	}
	public void setScriptType(Integer scriptType) {
		this.scriptType = scriptType;
	}
	public Boolean getMultiThreading() {
		return multiThreading;
	}
	public void setMultiThreading(Boolean multiThreading) {
		this.multiThreading = multiThreading;
	}
	public String getClientGroup() {
		return clientGroup;
	}
	public void setClientGroup(String clientGroup) {
		this.clientGroup = clientGroup;
	}
	public Boolean getTaskStatus() {
		return taskStatus;
	}
	public void setTaskStatus(Boolean taskStatus) {
		this.taskStatus = taskStatus;
	}
	
	

}
